package ldh.common.testui.model;

import ldh.common.testui.constant.CompareType;
import lombok.Data;

@Data
public class BeanData {

    private Integer index;
    private String checkName;
    private String secondCheckName;
    private String exceptedValue;
    private Object value;
    private String desc;
    private String classType;
    private Boolean success;
    private CompareType compareType;
    private transient Object exceptedObjectValue;

    @Override
    public boolean equals(Object obj) {
        if(!(obj instanceof BeanData) || obj == null) return false;
        BeanData bc = (BeanData) obj;
        return bc.getIndex().equals(index);
    }

    @Override
    public int hashCode() {
        return index.hashCode();
    }

}
